package org.springframework.study;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.study.bean.Car;

public class ContextBeanLifeCycle {
	public static void main(String[] args) {
		ApplicationContext ctx=new ClassPathXmlApplicationContext("car2.xml");
		Car car =(Car) ctx.getBean("car");
		System.out.println(car.getBrand());
	}
}
